package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.home.WxHomeListData;
import com.cskaoyan.service.wx.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: WxHomeController
 * Description:
 * date: 2022/6/8 17:15
 *
 * @author bruce
 * @since JDK 8
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;

    @RequestMapping("index")
    public BaseRespVo homeIndex() {
        WxHomeListData wxHomeListData = wxHomeService.queryIndex();
        return BaseRespVo.ok(wxHomeListData);
    }
}
